package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-05-24
 * Time: 19:21
 */
public class Rectangle {
    double width;
    double height;


    //有参数的构造方法
    public Rectangle(double width, double height) {
        this.width = width;
        this.height = height;
    }
    //无参数的构造方法
    public Rectangle(){
        width=1;
        height=1;
    }
}
